package net.apexes.demo.codegen.ormlite.annotation.entity;

import com.j256.ormlite.field.*;
import com.j256.ormlite.table.*;
import net.apexes.demo.codegen.entity.base.OrmliteEntityBase;

/**
 * Feature. Corresponds to the database table "FEATURE"
 */
@DatabaseTable(tableName = "FEATURE")
public class Feature extends OrmliteEntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * The columns of table "FEATURE"
     */
    public interface $ extends OrmliteEntityBase.$ {

        /**
         * FEATURE_GROUP_ID
         */
        public static final String featureGroupId = "FEATURE_GROUP_ID";

        /**
         * NAME
         */
        public static final String name = "NAME";

        /**
         * SEQ_ORDER
         */
        public static final String seqOrder = "SEQ_ORDER";

        /**
         * TEMPLATE_ID
         */
        public static final String templateId = "TEMPLATE_ID";

    }

    @DatabaseField(columnName = $.featureGroupId, canBeNull = false)
    private String featureGroupId;

    @DatabaseField(columnName = $.name, canBeNull = false)
    private String name;

    @DatabaseField(columnName = $.seqOrder, canBeNull = false)
    private Integer seqOrder;

    @DatabaseField(columnName = $.templateId, canBeNull = false)
    private String templateId;

    public String getFeatureGroupId() {
        return featureGroupId;
    }

    public void setFeatureGroupId(String featureGroupId) {
        this.featureGroupId = featureGroupId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSeqOrder() {
        return seqOrder;
    }

    public void setSeqOrder(Integer seqOrder) {
        this.seqOrder = seqOrder;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",featureGroupId=").append(featureGroupId);
        sb.append(",name=").append(name);
        sb.append(",seqOrder=").append(seqOrder);
        sb.append(",templateId=").append(templateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

